package com.salton123.voice.recorder;

import android.support.annotation.IntDef;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * User: newSalton@outlook.com
 * Date: 2019/3/8 18:34
 * ModifyTime: 18:34
 * Description:
 */
@Retention(RetentionPolicy.SOURCE)
@Target(ElementType.PARAMETER)
@IntDef({
        RecorderState.STATE_ERROR,
        RecorderState.STATE_IDLE,
        RecorderState.STATE_PREPARED,
        RecorderState.STATE_RECORDING,
        RecorderState.STATE_STOP,
        RecorderState.STATE_RELEASE
})
public @interface RecorderState {
    /**
     * 录制错误
     **/
    int STATE_ERROR = -1;
    /**
     * 录制未开始
     **/
    int STATE_IDLE = 0;
    /**
     * 录制准备就绪
     **/
    int STATE_PREPARED = 2;
    /**
     * 正在录制
     **/
    int STATE_RECORDING = 3;
    /**
     * 录制停止
     **/
    int STATE_STOP = 4;

    int STATE_RELEASE = 5;
}
